

from openai import OpenAI

client = OpenAI(
    base_url="https://api.siliconflow.cn/v1",   # 固定
    api_key="sk-rgymzddvnnrgwawnkevkdzlxkxfvhbviqgibbfgpvsyoqtur"                        # 控制台里生成
)

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-R1-0528-Qwen3-8B",           # 满血 671B
    messages=[{"role": "user", "content": "1+1等于几"}],
    stream=False
)

print(response.choices[0].message.content)